/*
 *   Clovis
 *   Copyright (C) 2008 SFWOL
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef __MOUSE_H
#define __MOUSE_H

#include "../core/CInteger.h"

namespace clovis {

	namespace io {

		/*!
		 * Mouse is a mouse handler.
		 */
		class Mouse {

			public:

                /*!
                 * Constructeur
                 */
				Mouse();

                /*!
                 * setPosition
                 * \arg x position en x
                 * \arg y position en y
                 */
                void setPosition( core::CInteger x , core::CInteger y);

                /*!
                 * stateLeft
                 * \arg state etat du bouton gauche : true ou false
                 */
                void stateLeft(bool state);

                /*!
                 * stateRight
                 * \arg state etat du bouton droit : true ou false
                 */
                void stateRight(bool state);

                /*!
                 * stateMiddle
                 * \arg state etat du bouton du milieu : true ou false
                 */
                void stateMiddle(bool state);

            private:

                core::CInteger x,y;
                bool left,right,middle;

		};

	};

};

#endif
